package cn.xn.hrms.domain.service;

import cn.xn.hrms.api.dto.res.DepartmentDTO;
import cn.xn.hrms.api.dto.req.DepartmentReqDTO;
import com.github.pagehelper.PageInfo;

import java.util.Collection;
import java.util.List;

/**
 * @author ysz
 */
public interface DepartmentService {

    PageInfo<DepartmentDTO> findAll(int pageNum, int pageSize);
    List<DepartmentDTO> all();

    PageInfo<DepartmentDTO> search(String departmentName, int pageNum, int pageSize);

    DepartmentDTO find(int id);

    void insert(DepartmentReqDTO departmentReqDTO);

    void deleteByIdIn(Collection<Integer> idList);

    void updateById(Integer id, DepartmentReqDTO departmentReqDTO);
}
